You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TRngStream Class > TRngStream Methods > TRngStream.RandomLaplace Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TRngStream.RandomLaplace Method

Generates an array of samples distributed by Laplace distribution.

Syntax
C#
Visual Basic
public void RandomLaplace([In] TMtxVec Dst, [In] double a, [In] double beta);

Returns random numbers distributed according to the Laplace probability density function (PDF). The number of samples generated is defined with the Dst.Length parameter. The result is an array which can be accessed via Dst.Values property. The probability density function is defined as: 

 

1 |x-a| f(x) = --------------- exp( - ------ ) sqrt(2*beta) beta
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!